<script setup lang='ts'>
  import { onMounted, computed, watch, ref } from 'vue';
  const cattleImgRef = ref()
  
  onMounted(()=>{
    let leftNum = cattleImgRef.value.getBoundingClientRect().left
    // console.log('leftNum', leftNum);
  })
</script>
<template>
  <div class="error">
    <van-empty image="error" description="user Not Found" />
    <div class="cattleImgRef" ref="cattleImgRef"></div>
  </div>
</template>
<style>
  .cattleImgRef {
    position: fixed;
    /* left: -2px; */
    /* top: 0; */
    margin-left: -10px;
    width: 100px;
    height: 100px;
    background: red;
  }
</style>